package com.cbh.feign.controller.shortmenssage;



import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.cbh.api.model.ApiResult;

public interface MessageModleControllerBase {

	@RequestMapping(value = "/v1/app/messageModle/{modleid}", method = RequestMethod.GET, produces = "application/json")
	public ApiResult<String> selectBymodleid(@PathVariable("modleid") String modleid);

	@RequestMapping(value = "/v1/app/messageModle", method = RequestMethod.POST, produces = "application/json")
	public ApiResult<String> updateModle(@RequestParam(value = "modleid", required = false) String modleid,
			@RequestParam(value = "modletitle", required = true) String modletitle,
			@RequestParam(value = "modlecontent", required = true) String modlecontent,
			@RequestParam(value = "modleremarks", required = false) String modleremarks,
			@RequestParam(value = "paramMap", required = false) String modlecode);

	@RequestMapping(value = "/v1/app/messageModle/{modleid}", method = RequestMethod.DELETE, produces = "application/json")
	public ApiResult<String> deletemodle(@PathVariable("modleid") String modleid);
}
